package com.fr.report.script.core.parser;

import com.fr.report.script.Calculator;

public class SheetIntervalLiteral extends Atom
{
  private String sheetName;
  private Atom atom;

  public SheetIntervalLiteral(String paramString, Atom paramAtom)
  {
    this.sheetName = paramString;
    this.atom = paramAtom;
  }

  public String getSheetName()
  {
    return this.sheetName;
  }

  public Atom getSheetAtom()
  {
    return this.atom;
  }

  public Object eval(Calculator paramCalculator)
    throws UtilEvalError
  {
    return paramCalculator.resolveVariable(this);
  }

  public String getExpression(int paramInt1, int paramInt2, int paramInt3, int paramInt4, boolean paramBoolean)
  {
    return this.sheetName + "!" + this.atom.getExpression(paramInt1, paramInt2, paramInt3, paramInt4, paramBoolean);
  }

  public String[] parserParameter()
  {
    return null;
  }

  public void traversal4Tiny(TinyHunter paramTinyHunter)
  {
  }

  public String toString()
  {
    return this.sheetName + "!" + this.atom.toString();
  }
}